package org.example.springcloud.controller;

import org.example.springcloud.entities.Payment;
import org.example.springcloud.result.CommonResult;

/**
 * Created with IntelliJ IDEA.
 *
 * @author Jandmla
 * Date: 2022/7/22
 * Time: 15:15
 * Description: 视图控制器接口
 */
public interface PaymentController {

    /**
     * 插入数据
     * @param payment 数据体
     * @return 插入结果
     */
    public CommonResult<Integer> create( Payment payment);

    /**
     * 获取数据
     * @param id ID
     * @return 获取结果
     */
    public CommonResult<Payment> get(Long id);
}